package com.erms.bean;

/**
 * FileInfo entity. @author MyEclipse Persistence Tools
 */

public class FileInfo implements java.io.Serializable {

	private static final long	serialVersionUID	= -224152906993992818L;

	// Fields
	private Integer	id;
	private User	user;
	private String	path;
	private String	name;
	private String	description;
	private String	type;
	private Long	size;
	private Integer	timestamp;
	private Integer	commentNum;
	private Integer	readNum;
	private Integer	downloadNum;

	// Constructors

	/** default constructor */
	public FileInfo() {

	}

	/** minimal constructor */
	public FileInfo(String path) {

		this.path = path;
	}

	/** full constructor */
	public FileInfo(User user, String path, String name, String description,
			String type, Long size, Integer timestamp, Integer commentNum,
			Integer readNum, Integer downloadNum) {

		this.user = user;
		this.path = path;
		this.name = name;
		this.description = description;
		this.type = type;
		this.size = size;
		this.timestamp = timestamp;
		this.commentNum = commentNum;
		this.readNum = readNum;
		this.downloadNum = downloadNum;
	}

	// Property accessors

	public Integer getId() {

		return this.id;
	}

	public void setId(Integer id) {

		this.id = id;
	}

	public User getUser() {

		return this.user;
	}

	public void setUser(User user) {

		this.user = user;
	}

	public String getPath() {

		return this.path;
	}

	public void setPath(String path) {

		this.path = path;
	}

	public String getName() {

		return this.name;
	}

	public void setName(String name) {

		this.name = name;
	}

	public String getDescription() {

		return this.description;
	}

	public void setDescription(String description) {

		this.description = description;
	}

	public String getType() {

		return this.type;
	}

	public void setType(String type) {

		this.type = type;
	}

	public Long getSize() {

		return this.size;
	}

	public void setSize(Long size) {

		this.size = size;
	}

	public Integer getTimestamp() {

		return this.timestamp;
	}

	public void setTimestamp(Integer timestamp) {

		this.timestamp = timestamp;
	}

	public Integer getCommentNum() {

		return this.commentNum;
	}

	public void setCommentNum(Integer commentNum) {

		this.commentNum = commentNum;
	}

	public Integer getReadNum() {

		return this.readNum;
	}

	public void setReadNum(Integer readNum) {

		this.readNum = readNum;
	}

	public Integer getDownloadNum() {

		return this.downloadNum;
	}

	public void setDownloadNum(Integer downloadNum) {

		this.downloadNum = downloadNum;
	}

}
